package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        System.out.println("后端服务已启动: http://localhost:8080");
        System.out.println("GET接口: http://localhost:8080/users/1");
        System.out.println("POST接口: http://localhost:8080/posts");
    }
}